module.exports = {
  publicPath: '/',
  outputDir: 'dist',
  assetsDir: 'static',
  productionSourceMap: false,
  devServer: {
    port: 7080,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },

    /* 反向代理 */
    proxy: {
      '/api': {
        target: 'http://localhost:3040', // 代理的服务器地址
        changeOrigin: true // 跨域
      }
    }
  }
}
